home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / Includes / PMEventRec.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-18  |  4.9 KB  |  135 lines  |  [TEXT/CWIE]

  1. /**[f******************************************************************
  2.  *    PMEvtRec.h -- PageMaker Event Records
  3.  *
  4.  *    Copyright (c) 1996 Adobe Systems, Inc. All Rights Reserved
  5.  *
  6.  *    
  7.  * ABSTRACT:  
  8.  *         This file contains record definitions for various PM events.
  9.  *
  10.  * USAGE: 
  11.  *
  12.  * ROUTINES DEFINED:
  13.  *
  14.  * $Revision:   1.6  $
  15.  *
  16.  *
  17.  *
  18.  **f]******************************************************************/ 
  19. #ifndef _PMEVTREC_H
  20. #define _PMEVTREC_H
  21.  
  22. #include "CIObjectAccess.h"
  23.  
  24. // Plugin filespec
  25. typedef struct _PMFILE_SPEC_REC {
  26.     char            *pfileName;                // address of File name. 
  27. #ifdef MACINTOSH 
  28.     short            *vRefNum;               // Volume or WD ref number 
  29.     long            *dirID;
  30. #endif // MACINTOSH
  31. } PMFILESPEC, *PPMFILESPEC;
  32.  
  33. #ifndef RID
  34. typedef unsigned long RID;
  35. #endif
  36.                         
  37. // Event Record for PMEVT_OPENPUB_BEFORE
  38. typedef struct _PMOPENPUB_REC {
  39.     PMFILESPEC    *pfSpec;        // address containing the pub's filespec
  40.     unsigned short        openCopy;        // == 1 for Open Copy, == 0 for Open Original
  41. } PMEVT_OPENPUB_REC, *PPMEVT_OPENPUB_REC;
  42.  
  43. // Event Record for PMEVT_INSERTPAGES_BEFORE
  44. typedef struct _PMINSERTPAGES_REC {
  45.     unsigned short        firstnewpage;    // Page number of page to add before 
  46.     unsigned short        numpages;        // Number of pages to add
  47.     RID                    idleftmp;        // left master page index 
  48.     RID                    idrightmp;        // right master page index 
  49. } PMEVT_INSERTPAGES_REC, *PPMEVT_INSERTPAGES_REC;
  50.  
  51. // Event Record for PMEVT_REMOVEPAGES_BEFORE
  52. typedef struct _PMREMOVEPAGES_REC {
  53.     unsigned short        firstremovedpage;    // Page number of page to remove 
  54.     unsigned short        numremoved;            // Number of pages to remove
  55. } PMEVT_REMOVEPAGES_REC, *PPMEVT_REMOVEPAGES_REC;
  56.  
  57. // Event Record for PMEVT_DELETEOBJECT_BEFORE 
  58. typedef struct _PMDELETEOBJECT_REC {
  59.     unsigned short            deleteState;    // =1 when first delete/redo delete, =2 for undodelete, =3 for CommitDelete
  60.     PMOBJ_REC        objAccRec;        // object record for ObjectAccess interface
  61. } PMEVT_DELETEOBJECT_REC, *PPMEVT_DELETEOBJECT_REC;
  62.  
  63. // Event Record for PMEVT_MULTIPLEPASTE_BEFORE
  64. typedef struct _PMMULTIPLEPASTE {
  65.     unsigned short    numMultiPastes;            // num times to repeat the paste
  66.     long    pasteHorizOffset;        // X offset for each paste of object
  67.     long    pasteVertOffset;        // Y offset for each paste of object
  68. } PMEVT_MULTIPLEPASTE_REC, *PPMEVT_MULTIPLEPASTE_REC;
  69.  
  70. // Event Record for PMEVT_LAYOUT_DRAWOBJECT_BEFORE
  71. typedef struct _PMLAYOUT_DRAWOBJECT_REC {
  72.     unsigned short            bPrinting;        // =0 for display, =1 for print
  73.     PMOBJ_REC        objAccRec;        // object record for ObjectAccess interface
  74. } PMEVT_LAYOUT_DRAWOBJECT_REC, *PPMEVT_LAYOUT_DRAWOBJECT_REC;
  75.  
  76. // Event Record for PMEVT_EXPORT_BEFORE, PMEVT_PLACE_BEFORE, PMEVT_SAVEGRAPHIC_BEFORE
  77. typedef struct _PMFILESPEC_REC {
  78.     PMFILESPEC    *pfSpec;        // address containing the file's filespec
  79. } PMEVT_FILESPEC_REC, *PPMEVT_FILESPEC_REC;
  80.  
  81. // Event Record for PMEVT_RELINK_AFER
  82. typedef struct _PMRELINK_REC {
  83.     PMFILESPEC    *pOldFSpec;        // address containing the old graphic's filespec
  84.     PMFILESPEC    *pNewFSpec;        // address containing the new graphic's filespec
  85. } PMEVT_RELINK_REC, *PPMEVT_RELINK_REC;
  86.  
  87. // Event Record for PMEVT_MENUCOMMAND_BEFORE
  88. typedef struct _PMMENUCOMMAND {
  89.     unsigned short        menuItemID;        // PageMaker menu item ID
  90.     unsigned short        menuGroupID;    // PageMaker menu group ID
  91. } PMEVT_MENUCOMMAND_REC, *PPMEVT_MENUCOMMAND_REC;
  92.  
  93. // Event Record for PMEVT_GOTOPAGE_BEFORE
  94. typedef struct _PMGOTOPAGE_REC {
  95.     unsigned short        newPage;        // page number to goto
  96.     unsigned short        isaMasterPage;    // =1 if going to a master page, else =0
  97. } PMEVT_GOTOPAGE_REC, *PPMEVT_GOTOPAGE_REC;
  98.  
  99. // Event Record for PMEVT_OBJECT_DBLCLICK_BEFORE
  100. typedef struct _PM_OBJECT_DBLCLICK_REC {
  101.     PMOBJ_REC    objAccRec;        // object record for ObjectAccess interface
  102. } PMEVT_OBJECT_DBLCLICK_REC, *PPMEVT_OBJECT_DBLCLICK_REC;
  103.  
  104. // Event Record for PMEVT_PLUGIN_COMMAND_BEFORE & PMEVT_PLUGIN_COMMAND_AFTER
  105. typedef struct _PMPLUGINCOMMAND {
  106.     unsigned short        ComandID;        // Plugin Command ID
  107.     long        retCode;        // Retcode for PMEVT_PLUGIN_COMMAND_AFTER only
  108.     void *        ParamData;        // ParamData - need PMIBasic GetParm routines
  109. } PMEVT_PLUGIN_COMMAND, *PPMEVT_PLUGIN_COMMAND; 
  110.  
  111. // Event Record for PMEVT_OBJEDIT_MEDIA_IMAGE
  112. typedef struct
  113. {
  114.     PMOBJ_REC    objAccRec;
  115.     char        mediaType[4];
  116.     char        pluginType[4];
  117. } PMEVT_OBJEDIT_MEDIA_IMAGE_REC, *PPMEVT_OBJEDIT_MEDIA_IMAGE_REC;
  118.  
  119. // Event Record for PMEVT_STYLE_AFTER
  120. typedef struct _PMSTYLE_REC {
  121.     unsigned short        bEditStyle;        // =1 for edit only, =0 apply to current selection/default
  122. } PMEVT_STYLE_REC, *PPMEVT_STYLE_REC;
  123.  
  124. // Event Record for PMEVT_COLOR_AFTER
  125. typedef struct _PMCOLOR_REC {
  126.     unsigned short        bEditColor;        // =1 for edit only, =0 apply to current selection/default
  127. } PMEVT_COLOR_REC, *PPMEVT_COLOR_REC;
  128.  
  129. // Event Record for PMEVT_HLINK_CLICK_REC
  130. typedef struct _PMEVT_HLINK_CLICK_REC {
  131.     unsigned long        hcmObjectId;    // hcm object id
  132. } PMEVT_HLINK_CLICK_REC, *PPMEVT_HLINK_CLICK_REC;
  133.  
  134. #endif    // _PMEVTREC_H
  135.